package wsz.util;

import java.util.UUID;

/**
 * @author wsz
 * @date 2021/12/27 12:33
 **/
public class CommonUtils {

    /**
     * 随机6位数
     * @return
     */
    public static String getEmailCode() {
        return String.valueOf((int)((Math.random() * 9 + 1) * 100000));
    }

    public static String getRandomString() {
        return UUID.randomUUID().toString();
    }

    public static void main(String[] args) {
        System.out.println(CommonUtils.getEmailCode());
    }
}
